package com.mengxuegu.security.properites;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author william
 * @create 2021-07-03 15:44
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AuthenticationProperties {
    private String loginPage = "/login/page";
    private String loginProcessingUrl = "/login/form";
    private String usernameParameter = "name";
    private String passwordParameter = "pwd";
    private String[] staticPaths = {"/dist/**", "/modules/**", "/plugins/**"};
    private LoginResponseType loginType = LoginResponseType.JSON;//认证响应的类型:JSON,REDIRECT 重定向
    private String imageCodeUrl = "/code/image";//获取图形验证码地址
    private String mobileCodeUrl = "/code/mobile";//发送手机验证码地址
    private String mobilePageUrl = "/mobile/page";//前往手机登录页面
    private Integer tokenValiditySeconds = 604800;//记住我功能有效时长7天 注意不能写表达式(60 * 60 * 24 * 7)
}
